const app = getApp();
Page({
  data: {
    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar,
    mod:null,
    list:[
        {
          id:'1',
          template:'YS001', //阳上001号模板
          name:'姓名',
          amount:100,
          family:'',
          type:'ys',
          paid:true
        },
        {
            id:'2',
            template:'YS002', //阳上001号模板
            name:'姓名 姓名 姓名',
            amount:100,
            family:'合家',
            type:'ys',
            paid:true
        },
        {
            id:'3',
            template:'YS003', //阳上001号模板
            name:'姓名',
            amount:100,
            family:'合家',
            type:'ys',
            paid:true
        },
        {
          id:'4',
          template:'WS001', //往生001号模板
          name:'姓名',
          amount:100,
          type:'ws',
          family:'合家累劫冤亲债主、累劫一切有缘众生',
        },
        {
            id:'5',
            template:'WS002', //往生001号模板
            name:'姓名',
            amount:100,
            type:'ws',
            family:'合家历代祖先、累劫父母师长、累劫六亲眷属',
        },
        {
            id:'6',
            template:'WS003', //往生001号模板
            name:'姓名',
            amount:100,
            type:'ws',
            family:'合家累劫故儿妙音',
        },
  
      ]
  },
    switchColor(e){
        switch(e){
            case 'YS001':
                return 'var(--gradualOrange)'
            break;
        }
    },
    setting(e){
        console.log(e.currentTarget.dataset.mod)
        wx.showToast({
            title:'设置成功'
        })
    },
  showModal(e) {
    this.setData({
      modalName: e.currentTarget.dataset.target
    })
  },
  hideModal(e) {
    this.setData({
      modalName: null
    })
  },
  switchSex: function (e) {
    this.setData({
      skin: e.detail.value
    });
  },
})